package dao.hiberante;


import java.util.Iterator;
import java.util.List;


import bean.student;


import HibernateSession.HibernateSessionFactory;;

public class studentTest {
	public static void main(String[] args) {
		student one = new student();
	    one.setName("chenyuou");
	    one.setPassword("wer");
	    one.sets_ID("2");

	    
	    studentDAO db = new studentDAO();
	    
	    /*
	    db.update(one);

	    List l = db.queryALL();

		if(l != null){
		  Iterator it=l.iterator();
		  while(it.hasNext()){
		   student s =(student)it.next();
		   System.out.println("studentID:"+s.gets_ID()+" name:"+s.getName()+" password:"+s.getPassword());
		  }
		 }
		 */
	}
}
